/**
 * <p>Copyright:Copyright(c) 2019</p>
 * <p>Company:Professional</p>
 * <p>Package:com.cesgroup.zw.spring.boot.echarts.component.series</p>
 * <p>File:Boxplot.java</p>
 * <p>类更新历史信息</p>
 * @todo chanlong(陈龙) 创建于 Jun 3, 2019 5:49:47 PM
 */
package com.cesgroup.zw.spring.boot.echarts.component.series;

import com.cesgroup.zw.spring.boot.echarts.component.series.parent.DatasetSeries;
import com.cesgroup.zw.spring.boot.echarts.enums.Orient;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>描述: 箱型图</p>
 * <p>Company: Professional</p>
 * @author chanlong(陈龙)
 * @date Jun 3, 2019 5:49:47 PM
 * @version 1.0.2019
 */
@Data @SuppressWarnings("serial")
@EqualsAndHashCode(callSuper = true)
public class Boxplot extends DatasetSeries {
	
	/** 是否开启鼠标 hover 节点的提示动画效果 ，[default: true]*/
	private Boolean hoverAnimation;
	
	/** 布局方式，[default: null] */
	private Orient layout;
	
	/** box 的宽度的上下限。数组的意思是：[min, max]，[default: [7, 50]] */
	private Object[] boxWidth;
	
	public void setBoxWidth(Integer min, Integer max) {
		this.boxWidth = new Object[] { min, max };
	}
	
	public void setBoxWidth(String min, String max) {
		this.boxWidth = new Object[] { min, max };
	}

	public Boxplot() {
		this.setType("boxplot");
	}
}
